<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!doctype html>
<html lang="zh-CN">
<head>
<style type="text/css">
.input1 {
	width: 500px;
	background-color: #ccc;
}

#script_code {
	width: 90%;
	height: 300px;
	background-color: #ccc;
}
</style>
<title>日志</title>
</head>
<ul id="logUL">
</ul>
<body>

</body>
<script src="../static/jquery-1.11.0.js"></script>
<script type="text/javascript">
	$(function() {
		$.post("script_execute_log.htm", {
			t : new Date(),
			scriptId : "${param.scriptId}"
		}, function(data) {
			var ul = $("#logUL");
			for ( var i in data) {
				var line = data[i];
				var li = $("<li></li>");
				while (line.indexOf("\r\n") >= 0) {
					line = line.replace("\r\n", "<br/>");
				}
				li.append(line);
				ul.append(li);
			}
		}, "json");
	});
</script>
</html>
